package br.com.almoxarifadoporttek.view.managed;

import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

import br.com.almoxarifadoporttek.model.Nivel;
import br.com.almoxarifadoporttek.persistence.NivelDAO;
import br.com.almoxarifadoporttek.persistence.INivelDAO;

@ManagedBean
@RequestScoped
public class NiveisMB 
{
	private List<Nivel> niveis;
	
public NiveisMB () 
{
		try
		{
			niveis = new ArrayList<Nivel>();
			
			INivelDAO nivelDAO = new NivelDAO();
			
			niveis = nivelDAO.list();
	
		}
			catch(Exception e)
			{}
}


	public List<Nivel> getNiveis() {
		return niveis;
	}


	public void setNiveis(List<Nivel> niveis) {
		this.niveis = niveis;
	}


}
